//
//  UICollectionViewCell+Block.m
//  bliss
//
//  Created by mac on 2023/8/16.
//

#import "UICollectionViewCell+Block.h"
#import <objc/runtime.h>

@implementation UICollectionViewCell (Block)

static const char OptionBlock = '\0';
- (void)setOptionBlock:(ContentCollectionCellOptionBlock)optionBlock{
    
    objc_setAssociatedObject(self, &OptionBlock,
    optionBlock, OBJC_ASSOCIATION_COPY_NONATOMIC);
}

- (ContentCollectionCellOptionBlock)optionBlock{
    
    return objc_getAssociatedObject(self, &OptionBlock);
}

@end
